Node.create

Creates a new Node from the given nullable TSNode

struct Node
static @trusted @nogc nothrow
Nullable!Node
create
(
TSNode tsnode
)

Parameters

tsnode TSNode

a C tsnode, which can be a null node.

Return Value

Type: Nullable!Node

a Nullable!Node, which gives the node if it is not a null node, and null if it is.

Meta